
pub enum ExistResult {
  Yes,
  No,
  CannotCheck,
}

impl ExistResult {
  pub fn is_exist(&self) -> bool {
    match self {
      ExistResult::Yes => true,
      ExistResult::No => false,
      ExistResult::CannotCheck => false,
    }
  }

  pub fn is_not_exist(&self) -> bool {
    match self {
      ExistResult::Yes => false,
      ExistResult::No => true,
      ExistResult::CannotCheck => false,
    }
  }

  pub fn is_not_check(&self) -> bool {
    match self {
      ExistResult::Yes => false,
      ExistResult::No => false,
      ExistResult::CannotCheck => true,
    }
  }
}
